<div class="dux-index-layout am-g ">

    <div class="am-u-sm-9 layout-l">
        <div class="dux-index-show am-cf">
            <div class="show-head">
                欢迎您回来, <span class="am-text-danger">{$userInfo.show_name}</span>
            </div>
            <dl>
                <dt>电话</dt>
                <dd>{$userInfo.tel ? $userInfo.tel : '未绑定'}</dd>
            </dl>
            <dl>
                <dt>邮箱</dt>
                <!--if{$userInfo.email}-->
                <dd>{$userInfo.email ? $userInfo.email : '未绑定'}</dd>
                <!--{else}-->
                <dd><a href="{url('member/setting/index')}">未设置</a></dd>
                <!--{/if}-->
            </dl>
            <dl>
                <dt>登录时间</dt>
                <dd>{date('Y-m-d H:i:s', $userInfo.login_time)}</dd>
            </dl>
            <dl>
                <dt>登录IP</dt>
                <dd>{$userInfo.login_ip ? $userInfo.login_ip : '未知'}</dd>
            </dl>

        </div>
        <div class="dux-index-side"></div>
        <div class="dux-index-count">
            <ul class=" am-g ">
                <li class="am-u-sm-4">
                    <div class="item item1">
                        <div class="icon">
                            <i class="am-icon-money"></i>
                        </div>
                        <div class="info">
                            <div class="count">￥{$userInfo.money}</div>
                            <div class="name">账户余额</div>
                        </div>
                    </div>
                </li>
                <li class="am-u-sm-4">
                    <div class="item item2">
                        <div class="icon">
                            <i class="am-icon-database"></i>
                        </div>
                        <div class="info">
                            <div class="count">{$userInfo.points}</div>
                            <div class="name">账户积分</div>
                        </div>
                    </div>
                </li>
                <li class="am-u-sm-4">
                    <div class="item item3">
                        <div class="icon">
                            <i class="am-icon-comment"></i>
                        </div>
                        <div class="info">
                            <div class="count">0</div>
                            <div class="name">未读消息</div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <br>
        <div class="dux-box">
            <div class="box-header am-cf">我的订单
                <a href="{url('shop/order/index')}" class="more">全部订单</a></div>
            <div class="box-body">
                <ul class="am-avg-sm-5 dux-index-menu">
                    <li>
                        <a href="{url('shop/order/index',['type' => 1])}">
                            <i class="am-icon-credit-card">
                                <span class="am-badge am-badge-danger">{$orderCount.pay}</span>
                            </i>
                            <div class="name">待付款</div>
                        </a>
                    </li>
                    <li>
                        <a href="{url('shop/order/index',['type' => 2])}">
                            <i class="am-icon-inbox">
                                <span class="am-badge am-badge-danger">{$orderCount.delivery}</span>
                            </i>
                            <div class="name">待发货</div>
                        </a>
                    </li>
                    <li>
                        <a href="{url('shop/order/index',['type' => 3])}">
                            <i class="am-icon-dropbox">
                                <span class="am-badge am-badge-danger">{$orderCount.complete}</span>
                            </i>
                            <div class="name">待收货</div>
                        </a>
                    </li>
                    <li>
                        <a href="{url('shop/order/index',['type' => 4])}">
                            <i class="am-icon-commenting"></i>
                            <div class="name">已完成</div>
                        </a>
                    </li>
                    <li>
                        <a href="{url('order/Return/index')}">
                            <i class="am-icon-send"></i>
                            <div class="name">售后</div>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <br>
        <div class="dux-box">
            <div class="box-header am-cf">最新订单</div>
            <!--if{empty($orderList)}-->
            <div class="am-padding am-text-center">
                暂无购物订单
            </div>
            <!--{/if}-->
            <ul class="dux-index-order">
                <!--loop{$orderList as $vo}-->
                <li class="am-cf">
                    <div class="img">
                        <a href="{url($vo.order_app . '/order/info', ['order_no' => $vo.order_no])}"><img src="{$vo.order_image}"></a>
                    </div>
                    <div class="info">
                        <div class="title"><a href="{url($vo.order_app . '/order/info', ['order_no' => $vo.order_no])}">{$vo.order_title}</a></div>
                        <div class="price"><span class="am-text-danger">￥{$vo.order_price}</span></div>
                        <div class="status">{$vo.status_data.name}</div>
                    </div>
                    <div class="btn">
                        {$vo.status_data.html}
                    </div>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
        <br>
        <div class="dux-box">
            <div class="box-header am-cf">我的收藏</div>
            <!--if{empty($followList)}-->
            <div class="am-padding am-text-center">
                暂无收藏商品
            </div>
            <!--{/if}-->
            <div class="dux-pro-list">
                <ul class=" am-cf">
                    <!--loop{$followList as $key => $vo}-->
                    <li class="dux-pro-item">
                        <a href="{url($vo['app'].'info/index', ['id' => $vo['has_id']])}">
                            <div class="img">
                                <img src="{$vo.image}" alt="{$vo.title}">
                            </div>
                            <div class="title">{$vo.title}</div>
                            <div class="price">¥{$vo.price}</div>
                        </a>
                    </li>
                    <!--{/loop}-->

                </ul>
            </div>
        </div>

    </div>

    <div class="am-u-sm-3 layout-r">
        <div class="dux-index-calendar">
            <div class="calendar-title">我的日历</div>
            <div class="calendar-body">

                <div class="day">{date('d')}</div>
                <div class="info">
                    <p>
                        <?php $week = array('天','一','二','三','四','五','六'); ?>
                        星期<?php echo $week[date('w')]; ?>
                    </p>
                    <p>{date('Y.m')}</p>
                </div>

            </div>
        </div>
        <br>
        <div class="dux-box">
            <div class="box-header">我的足迹</div>
            <ul class="dux-sidebar-pro">
                <!--if{empty($followList)}-->
                <div class="am-padding am-text-center">
                    暂无浏览记录
                </div>
                <!--{/if}-->
                <!--loop{$shopFootprint as $vo}-->
                <li class="dux-pro-item">
                    <a href="" class="">
                        <div class="img">
                            <img src="{$vo.image}">
                        </div>
                        <div class="title"><a href="{url($vo.app.'/info/index', ['id' => $vo.shop_id])}">{$vo.title}</a></div>
                        <div class="price">¥{$vo.sell_price}</div>
                    </a>
                </li>
                <!--{/loop}-->


            </ul>
        </div>
    </div>


</div>